import request from '@/utils/request'

// 查询页面访问记录列表
export function listPageVisit(query) {
  return request({
    url: '/system/pageVisit/list',
    method: 'get',
    params: query
  })
}

// 查询页面访问记录详细
export function getPageVisit(id) {
  return request({
    url: '/system/pageVisit/' + id,
    method: 'get'
  })
}

// 新增页面访问记录
export function addPageVisit(data) {
  return request({
    url: '/system/pageVisit',
    method: 'post',
    data: data
  })
}

// 修改页面访问记录
export function updatePageVisit(data) {
  return request({
    url: '/system/pageVisit',
    method: 'put',
    data: data
  })
}

// 删除页面访问记录
export function delPageVisit(id) {
  return request({
    url: '/system/pageVisit/' + id,
    method: 'delete'
  })
}
